import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/home/home'
import Index  from '@/views/home/index'
import Guide from '@/views/game/guide'
import Collage from '@/views/game/collage'
import News from '@/views/game/news'
import Notice from '@/views/game/notice'
import Production from '@/views/game/production'
import Myself from '@/views/game/myself'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:'/index'
    },
    {
      path: '/home',
      name: 'Home',
      component: Home,
      children: [
        {
          path: '/index',
          name: 'Index',
          component: Index,
        },
        {
          path: '/guide',
          name: 'Guide',
          component: Guide,
        },
        {
          path: '/collage',
          name: 'Collage',
          component: Collage,
        },
        {// notice
          path: '/news',
          name: 'News',
          component: News,
        },
        {// notice
          path: '/notice',
          name: 'Notice',
          component: Notice,
        },
        {
          path: '/production',
          name: 'Production',
          component: Production,
        },
        {
          path: '/myself',
          name: 'Myself',
          component: Myself,
        }
      ]
    },
    
  ]
})
